package com.leapp.sk.sever.personal

import com.example.util.ObjectProcessingUtil
import com.leapp.sk.bean.ClassDetialDataEntity
import com.leapp.sk.bean.response.classs.ClassDetialResponseEntity
import com.leapp.sk.bean.response.classs.ContanctResponseEntity

/**
 * 联系人
 * @author  chaohaipeng  on 2018/8/22.
 */
class ContanctSever {
    private object mHolder {
        val instance = ContanctSever()
    }
    companion object {
        fun getInstance(): ContanctSever {
            return mHolder.instance
        }
    }
    /**
     * 获取联系人数据
     */
    fun getContanctData(obj: ContanctResponseEntity?):List<ClassDetialDataEntity>{
        val contanctList = ObjectProcessingUtil.objMandatoryConversionClass(obj?.data, mutableListOf<ClassDetialDataEntity>())
        return contanctList
    }

}